<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.org/rich"
	template="../include/template.xhtml">

	<ui:define name="pageTitle">
		<h:outputText value="人才" />
	</ui:define>
	<ui:define name="logoTitle">
		<h:outputText value="人才" />
	</ui:define>

	<ui:define name="content">
		<style type="text/css">
<!--
.inputClass {
	border: 1px solid #6699CC;
	width: 300px;
	margin-left: 4px;
}

.stringBlue {
	font-size: 16px;
	font-weight: bold;
	color: #3599fc;
}
-->
</style>
		<rich:spacer height="4px" />
		<a:form style="margin:0">
			<rich:simpleTogglePanel switchType="client" label="分类"
				style="width:29%;height:300px;float: left;"
				headerClass="headerClass">
				<a:repeat value="#{categoryAction.getCategoriesByLevel(1)}"
					var="category">
					<h:outputText value="+ " />
					<a:commandLink value="#{category.name}" styleClass="strong"
						action="#{providerAction.searchSubCategory(category.name)}" />
					<h:panelGrid columns="2" style="padding:0;margin:0">
						<a:repeat value="#{category.children}" var="child">
							<a:commandLink value="#{child.name},"
								action="#{providerAction.searchSubCategory(child.name)}" />
						</a:repeat>
					</h:panelGrid>
				</a:repeat>
			</rich:simpleTogglePanel>

			<rich:simpleTogglePanel switchType="client"
				style="width:70%;height:300px;float: right;"
				headerClass="headerClass">
				<f:facet name="header">
					<h:outputText value="用户推荐" />
				</f:facet>
				<rich:dataGrid value="#{userAction_users}" var="user" columns="3"
					elements="9" styleClass="dataGridClass">
					<h:panelGrid columns="2">
						<h:outputLink value="../upload/userFace/#{user.faceImage==null?'user3.gif':user.faceImage}">
							<h:graphicImage
								value="../upload/userFace/small_#{user.faceImage==null?'user3.gif':user.faceImage}"
								width="40" height="48"></h:graphicImage>
						</h:outputLink>
						<h:panelGroup>
							<h:outputText value="昵称:" />
							<s:link value="#{user.nickName}" view="/wike/viewDetail.xhtml"
								title="#{user.nickName}">
								<f:param name="userId" value="#{user.id}" />
							</s:link>
							<br />
							<h:outputText value="特长:" />
							<h:outputText value="#{user.specialty}" />
						</h:panelGroup>
					</h:panelGrid>
				</rich:dataGrid>
			</rich:simpleTogglePanel>
		</a:form>
	</ui:define>
</ui:composition>
